package com.light.dp.flink.config.dto;

import com.light.dp.flink.enums.JdbcDriverEnum;
import lombok.Data;

@Data
public class TargetJDBCDatabaseConfig extends JDBCDatabaseConfig {
    private String jobName;

    public TargetJDBCDatabaseConfig(JdbcDriverEnum jdbcDriver, String hostname, int port, String database, String username, String password) {
        super(jdbcDriver, hostname, port, database, username, password);
        this.jobName = " to " + this.getHostname() + ":" + this.getPort() + "/" + this.getDatabase();
    }

}
